Issue1299
Created on 2009-04-02.14:45:43 by doublep, last changed 2009-04-02.16:37:59 by fwierzbicki.
Messages | |||
---|---|---|---|
msg4410 (view) | Author: (doublep) | Date: 2009-04-02.14:45:40 | |
Setting to major, because this gives me no idea what I'm doing wrong (probably nothing). Used to work fine with 2.5b0, gives this with 2.5b1: java.lang.NullPointerException: java.lang.NullPointerException at org.python.core.PyException.fillInStackTrace(PyException.java:65) at java.lang.Throwable.<init>(Throwable.java:181) at java.lang.Exception.<init>(Exception.java:29) at java.lang.RuntimeException.<init>(RuntimeException.java:32) at org.python.core.PyException.<init>(PyException.java:46) at org.python.core.PyException.<init>(PyException.java:43) at org.python.core.Py.JavaError(Py.java:453) at org.python.core.PyTableCode.call(PyTableCode.java:169) at org.python.core.PyBaseCode.call(PyBaseCode.java:170) at org.python.core.PyFunction.__call__(PyFunction.java:312) at org.python.pycode._pyx1.f$0(<string>:1) at org.python.pycode._pyx1.call_function(<string>) at org.python.core.PyTableCode.call(PyTableCode.java:166) at org.python.core.PyCode.call(PyCode.java:14) at org.python.core.Py.runCode(Py.java:1206) at org.python.core.Py.exec(Py.java:1237) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:124) ... Caused by: java.lang.NullPointerException at org.python.core.PyObjectDerived.__tojava__(PyObjectDerived.java:1125) at org.python.core.Py.tojava(Py.java:471) at org.python.core.PyBeanProperty._doset(PyBeanProperty.java:61) at org.python.core.PyObject.__set__(PyObject.java:3629) at org.python.core.PyObject.object___setattr__(PyObject.java:3689) at org.python.core.PyObject.object___setattr__(PyObject.java:3678) at org.python.core.PyObject$object___setattr___exposer.__call__(Unknown Source) at org.python.core.PyObjectDerived.__setattr__(PyObjectDerived.java:1026) at org.python.core.PyReflectedConstructor.__call__(PyReflectedConstructor.java:142) at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:130) at org.python.core.PyMethod.__call__(PyMethod.java:99) at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1097) at org.python.core.PyType.invoke_new_(PyType.java:352) at org.python.core.PyType.type___call__(PyType.java:1200) at org.python.core.PyType.__call__(PyType.java:1191) at org.python.pycode._pyx0.service$1(/py/login.py:57) at org.python.pycode._pyx0.call_function(/py/login.py) at org.python.core.PyTableCode.call(PyTableCode.java:166) I cannot provide small example. It seems that PyObjectDerived.__tojava__ is called with null 'c' argument. |
|||
msg4411 (view) | Author: (doublep) | Date: 2009-04-02.14:46:46 | |
Erm, with 2.5b3. Got confused with versions field. |
|||
msg4412 (view) | Author: Frank Wierzbicki (fwierzbicki) | Date: 2009-04-02.16:30:33 | |
We can't help without clues -- can you provide big code sample? |
|||
msg4413 (view) | Author: Frank Wierzbicki (fwierzbicki) | Date: 2009-04-02.16:34:07 | |
or even a description of what you where doing? A bug report of an NPE with no guidance at all cannot be fixed. If you are accessing Java code for example, the NPE could come from that and then there would be nothing we could do from Jython. A couple of NPEs have been fixed lately, so maybe if you try again with trunk or with the next release (probably will be a release candidate) that will come out shortly... |
|||
msg4414 (view) | Author: Frank Wierzbicki (fwierzbicki) | Date: 2009-04-02.16:37:59 | |
Ah -- looking through your stack trace, I did find a clue. I am almost certain that this is a dup of http://bugs.jython.org/issue1295. An NPE occured when you try to set a readonly property (so a Java class with a setX but no corresponding getX) this is fixed in trunk. Closing as a dup. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2009-04-02 16:37:59 | fwierzbicki | set | status: open -> closed resolution: duplicate messages: + msg4414 |
2009-04-02 16:34:07 | fwierzbicki | set | messages: + msg4413 |
2009-04-02 16:30:34 | fwierzbicki | set | nosy:
+ fwierzbicki messages: + msg4412 |
2009-04-02 14:46:46 | doublep | set | messages: + msg4411 |
2009-04-02 14:45:44 | doublep | create |
Supported by Python Software Foundation,
Powered by Roundup